<template>
    <h1>计数器</h1>
    <div>{{ count }}</div>
    <button @click="increment">+</button>
</template>
<script lang="ts" setup>
    import {ref} from 'vue'
    let count=ref(0)
    const increment=()=>count.value++
</script>
<style>
</style>